package JavaSE.Class9;

public class Dog extends Animal{
    public Dog(String name, int age) {
        super("wangcai",14);
    }

    public void bark(){
        System.out.println(getName()+"wangwang~"+getAge()+" ");
    }
}
